# Contributor: Guy Godfroy <guy.godfroy@gugod.fr>
# Maintainer: Guy Godfroy <guy.godfroy@gugod.fr>
pkgname=quodlibet
pkgver=4.6.0
pkgrel=1
pkgdesc="Music player and music library manager"
url="https://quodlibet.readthedocs.io"
arch="noarch"
license="GPL-2.0-and-later"
depends="gtk+3.0
	py3-gobject3
	gobject-introspection
	cairo-gobject
	py3-cairo
	py3-mutagen
	libsoup
	py3-feedparser
	gstreamer
	gst-plugins-base
	gst-plugins-good
	gst-plugins-ugly
	gst-plugins-bad
	gst-libav
	py3-dbus"
makedepends="py3-gpep517 py3-setuptools py3-wheel gettext py3-gettext py3-sphinx"
subpackages="$pkgname-pyc $pkgname-doc $pkgname-lang $pkgname-bash-completion $pkgname-zsh-completion"
source="https://github.com/quodlibet/quodlibet/releases/download/release-$pkgver/quodlibet-$pkgver.tar.gz"
options="!check" #needs running GTK

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
d17ed0ba14aa86eaf103fdc5feaeda74575e4bd9d9e55dae07679afb50e279c82b66b7429b0435c36663a9865141c168d3ff56a25c64f9694818f722362db7e9  quodlibet-4.6.0.tar.gz
"
